/*
 * @Author       : Darcy
 * @Date         : 2021-04-23 21:46:54
 * @LastEditors  : Darcy
 * @LastEditTime : 2021-04-23 22:30:41
 * @FilePath     : \HelloWorld\Cpp\TXExersice\06\main.cpp
 * @Description  : <(￣︶￣)↗[GO!]
 * https://github.com/Darcy-Zhang
 */
#include "Automobile.h"
#include "Park.h"

using namespace std;

int main() {
    cout << "请输入停车位数量：";
    int N;
    cin >> N;

    Park park(N);

    Car car1("鲁B-12345", "奥迪A6");
    car1.enter(park);

    Truck truck("鲁B-23456", 15);
    truck.enter(park);

    car1.leave(park);

    Bus bus("鲁B-34567", 50);
    bus.enter(park);

    park.showInfo();

    Car car2("鲁B-45678", "宝马320");
    car2.enter(park);

    bus.leave(park);
    truck.leave(park);

    park.showInfo();

    return 0;
}
